package com.zhouys;

import java.sql.Connection;
import java.sql.DriverManager;

public class Test {
    public static void main(String[] args) {
        String driverName = "com.mysql.cj.jdbc.Driver";

        String dbURL="jdbc:mysql://47.95.214.46:3306/smbms?&useSSL=false&serverTimezone=Asia/Shanghai"; //websql为数据库名

        String userName = "root";

        String userPwd = "Zhouys618!";

        try {
            Class.forName(driverName);

            Connection con= DriverManager.getConnection(dbURL, userName, userPwd);

            System.out.println("y");

        } catch (Exception e) {

            e.printStackTrace();

            System.out.print("n");

        }
    }


}
